package com.julian.templatePattern.javaAPI;

import java.applet.Applet;
import java.awt.*;

public class MyApplet extends Applet {
    String message;

    @Override
    public void init() {
        message = "Hello World. I am alive";
        repaint();
    }

    @Override
    public void start() {
        message = "Now I am Start up...";
        repaint();
    }

    @Override
    public void stop() {
        message = "on, i now am stoppped";
        repaint();
    }

    @Override
    public void destroy() {
        //
    }

    @Override
    public void paint(Graphics g) {
        g.drawString(message,5,15);
    }
}
